
import com.csvreader.CsvReader;
import java.io.IOException;
import java.util.*;
public class Solution {
    public static void main(String[] args) {
        String filePath = "D:\\笔记\\中兴捧月\\train_step1.csv";
//        String filePath = "D:\\笔记\\中兴捧月\\1.csv";
        try {
            // 创建CSV读对象
            CsvReader csvReader = new CsvReader(filePath);
//            List<Map<String, String>> lists = new ArrayList<>();
            ArrayList<Object> objects = new ArrayList<>();
            HashSet<String> hashSet = new HashSet<>();
            Map<String, String> map= new HashMap<>();
            int columnCount=0;
            while(csvReader.readRecord())
            {
                objects.add(csvReader.getRawRecord());
                columnCount = csvReader.getColumnCount();

//                System.out.println(csvReader.getRawRecord());
//                if (!hashSet.add(csvReader.get(0))) {
//                    map.put(csvReader.get(0), csvReader.get(1));
//
//                } else {
//                    lists.add(map);
//                }

            }
            System.out.println(objects.get(0));


//            for (Map<String, String> m : lists) {
//                for (String key : m.keySet()) {
//                    System.out.println(key+"   "+m.get(key));
//                }
//            }
//

            } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
